package com.sf.osms.dep.processor.exception;

import java.util.HashMap;
import java.util.Map;

public class ExceptionConstants {
	
	public static final String HANDLE_LOGIC_ERROR_CODE = "handler_line_error";
	public static final String AGENT_FILE_MAP_NOT_FIND = "proxy mapping file don't exit ";
	public static final String AGENT_CAR_TYPE_NOT_FORMAT = "the car number format error ";
	public static final String AGENT_NET_NUM_NOT_FIND = "proxy don't have mapping net number ";
	public static final String AGENT_NET_INFO_NOT_FIND = " proxy don't have mapping net information(net number and operator ID) ";
	public static final String HANDLE_EVENT_CODE_ERROR = " transfer event code error ";
	public static final String HANDLE_RESON_CODE_ERROR = " transfer reason code error ";
	public static final String HANDLE_BAR_TIME_ERROR = " transfer bar time error ";
	public static final String HANDLE_BAR_DATE_ERROR = " transfer bar date error ";
	public static final String HANDLE_DATA_NOT_COMPLETE = " the line's data isn't complete and right ";
	public static final String HANDLE_DATA_NOT_SFCODE = "proxy'event code don't have opposite sfcode (no mapping relationship)";
	public static final String EVENTCODE_EMPTY = "EventCode cannot be empty";
	public static final String REASON_EMPTY = "Reason can not be empty";
	public static final String TIME_EMPTY = "Conversion time error";
	public static final String WAYBILL_EMPTY = "Waybill number can not be empty";
	public static final String DATE_ERROR = "Date error";
	public static final String TIME_EMPTY_ERROR = "Time can not be empty";
	public static final String AGENT_NET_INFO_NOT_FIND_CODE = "200001";
	public static final String AGENT_NET_INFO_NOT_FIND_INFO_EN = "agent don't config the information of network";
	public static final String AGENT_NET_INFO_NOT_FIND_INFO = "代理没有对应的网点信息";
	public static final String HANDLE_EVENT_CODE_ERROR_CODE = "200002";
	public static final String HANDLE_EVENT_CODE_ERROR_INFO_EN = "the transformation of event code occur exception";
	public static final String HANDLE_EVENT_CODE_ERROR_INFO = "事件节点转化出现异常";
	public static final String HANDLE_RESON_CODE_ERROR_CODE = "200003";
	public static final String HANDLE_RESON_CODE_ERROR_INFO_EN = "the transformation of reason code occur exception";
	public static final String HANDLE_RESON_CODE_ERROR_INFO = "原因节点转化出现异常";
	public static final String HANDLE_BAR_TIME_ERROR_CODE = "200004";
	public static final String HANDLE_BAR_TIME_ERROR_INFO_EN = "the transformation of bar time occur exception";
	public static final String HANDLE_BAR_TIME_ERROR_INFO = "把枪时间转化出现异常";
	public static final String HANDLE_BAR_DATE_ERROR_CODE = "200005";
	public static final String HANDLE_BAR_DATE_ERROR_INFO_EN = "the transformation of bar date occur exception";
	public static final String HANDLE_BAR_DATE_ERROR_INFO = "把枪日期转化出现异常";
	public static final String PROXY_EVENTCODE_EMPTY_CODE = "200006";
	public static final String PROXY_EVENTCODE_EMPTY_INFO_EN = "event code is empty";
	public static final String PROXY_EVENTCODE_EMPTY_INFO = "代理事件节点为空";
	public static final String EVENTCODE_EMPTY_CODE = "200007";
	public static final String EVENTCODE_EMPTY_INFO_EN = "event code is empty";
	public static final String EVENTCODE_EMPTY_INFO = "事件节点为空";
	public static final String WAYBILL_EMPTY_CODE = "200008";
	public static final String WAYBILL_EMPTY_INFO_EN = "sfwaybill is empty";
	public static final String WAYBILL_EMPTY_INFO = "运单号为空";
	public static final String BAR_DATE_EMPTY_CODE = "200009";
	public static final String BAR_DATE_EMPTY_INFO_EN = "bar date is empty";
	public static final String BAR_DATE_EMPTY_INFO = "把枪扫描日期为空";
	public static final String BAR_TIME_EMPTY_CODE = "200010";
	public static final String BAR_TIME_EMPTY_INFO_EN = "bar time is empty";
	public static final String BAR_TIME_EMPTY_INFO = "把枪扫描时间为空";
	public static final String NET_NUM_EMPTY_CODE = "200011";
	public static final String NET_NUM_EMPTY_INFO_EN = "netnum is empty";
	public static final String NET_NUM_EMPTY_INFO = "代理网点号为空";
	public static final String OPERATOR_NUM_EMPTY_CODE = "200012";
	public static final String OPERATOR_NUM_EMPTY_INFO_EN = "the number of operater is empty";
	public static final String OPERATOR_NUM_EMPTY_INFO = "操作员工号为空";
	public static final String PROXY_EVENTCODE_NOT_MAPPING_CODE = "200013";
	public static final String PROXY_EVENTCODE_NOT_MAPPING_INFO = "代理没有对应的事件代码映射关系";
	public static final String PRODUCT_TYPE_EMPTY_CODE = "200014";
	public static final String PRODUCT_TYPE_EMPTY_INFO_EN = "the type of product is empty";
	public static final String PRODUCT_TYPE_EMPTY_INFO = "产品类型为空"; //50节点必须有产品类型
	public static final String PHONE_EMPTY_CODE = "200015";
	public static final String PHONE_EMPTY_CODE_INFO_EN = "the receiver's phone num is empty";
	public static final String PHONE_EMPTY_INFO = "收方电话为空";
	public static final String SUBILL_QTY_EMPTY_CODE = "200016";
	public static final String SUBILL_QTY_EMPTY_INFO_EN = "the quantity of bag is empty";
	public static final String SUBILL_QTY_EMPTY_INFO = "件数为空";
	public static final String PAY_FLG_EMPTY_CODE = "200017";
	public static final String PAY_FLG_EMPTY_INFO_EN = "the way of pay is empty";
	public static final String PAY_FLG_EMPTY_INFO = "支付方式为空";
	public static final String WEIGHT_QTY_EMPTY_CODE = "200018";
	public static final String WEIGHT_QTY_EMPTY_INFO_EN = "the weight is empty";
	public static final String WEIGHT_QTY_EMPTY_INFO = "重量为空";
	public static final String PHONE_ZONE_EMPTY_CODE = "200019";
	public static final String PHONE_ZONE_EMPTY_INFO_EN = "the code of destination is empty";
	public static final String PHONE_ZONE_EMPTY_INFO = "目的地代码为空";
	public static final String CONT_CODE_ERROR_CODE = "200020";
	public static final String CONT_CODE_ERROR_INFO_EN = "the transformation of container's number occur exception";
	public static final String CONT_CODE_ERROR_INFO = "容器编号转化异常";
	public static final String REASONCODE_EMPTY_CODE = "200021";
	public static final String REASONCODE_EMPTY_INFO_EN = "reason code is empty";
	public static final String REASONCODE_EMPTY_INFO = "原因代码为空";
	public static final String NOT_TRANSFER_ROUT_CODE = "200024";
	public static final String NOT_TRANSFER_ROUT_INFO_EN = "the data of line is error";
	public static final String NOT_TRANSFER_ROUT_INFO = "错误数据";
	public static final String AGENT_NET_NUM_NOT_MAPPING_CODE = "200025";
	public static final String AGENT_NET_NUM_NOT_MAPPING_INFO = "代理传递的网点号没有设置对应的关系";
	public static final String DYNAMIC_JAVA_COMPILE_ERROR_CODE = "200026";
	public static final String DYNAMIC_JAVA_COMPILE_ERROR_INFO = "动态类编译异常";
	public static final String CONDITION_EXPRESS_NO_MAPPING_CODE = "200027";
	public static final String CONDITION_EXPRESS_NO_MAPPING_INFO = "当前行数据中没有满足表达式的节点";
	public static final String EVENT_CODE_NOT_BELONG_TO_SFCODE_CODE = "200028";
	public static final String EVENT_CODE_NOT_BELONG_TO_SFCODE_INFO = "节点不属于顺丰节点";
	public static final String PARSE_FILE_ERROR_CODE = "200030";
	public static final String PERSIST_FILE_ERROR_CODE = "200031";
	public static final String HANDLE_FILE_ERROR_CODE = "200032";
	public static final String PARSE_FILE_ERROR_INFO = "parsing file occur exception";
	public static final String HANDLE_FILE_ERROR_INFO = "hanling file occur exception";
	public static final String PERSIST_FILE_ERROR_INFO = "persistting router information occur exception";
	public static final String HANDLE_TIME_ZONE_ERROR_CODE = "200033";
	public static final String HANDLE_TIME_ZONE_ERROR_INFO = "transfer time zone occur exception";
	public static final String DOWN_LOAD_ERROR_INFO = "download file occur exception";
	public static final String DOWN_LOAD_ERROR_CODE = "200034";
	
	public static Map<String,String> errorEnDesc;
	static{
		errorEnDesc = new HashMap<String, String>();
		errorEnDesc.put(AGENT_NET_INFO_NOT_FIND_CODE, AGENT_NET_INFO_NOT_FIND_INFO_EN);
		errorEnDesc.put(HANDLE_EVENT_CODE_ERROR_CODE, HANDLE_EVENT_CODE_ERROR_INFO_EN);
		errorEnDesc.put(HANDLE_RESON_CODE_ERROR_CODE, HANDLE_RESON_CODE_ERROR_INFO_EN);
		errorEnDesc.put(HANDLE_BAR_TIME_ERROR_CODE, HANDLE_BAR_TIME_ERROR_INFO_EN);
		errorEnDesc.put(HANDLE_BAR_DATE_ERROR_CODE, HANDLE_BAR_DATE_ERROR_INFO_EN);
		errorEnDesc.put(PROXY_EVENTCODE_EMPTY_CODE, PROXY_EVENTCODE_EMPTY_INFO_EN);
		errorEnDesc.put(EVENTCODE_EMPTY_CODE,EVENTCODE_EMPTY_INFO_EN);
		errorEnDesc.put(WAYBILL_EMPTY_CODE,WAYBILL_EMPTY_INFO_EN);
		errorEnDesc.put(BAR_DATE_EMPTY_CODE,BAR_DATE_EMPTY_INFO_EN);
		errorEnDesc.put(BAR_TIME_EMPTY_CODE,BAR_TIME_EMPTY_INFO_EN);
		errorEnDesc.put(NET_NUM_EMPTY_CODE,NET_NUM_EMPTY_INFO_EN);
		errorEnDesc.put(OPERATOR_NUM_EMPTY_CODE,OPERATOR_NUM_EMPTY_INFO_EN);
		errorEnDesc.put(PRODUCT_TYPE_EMPTY_CODE,PRODUCT_TYPE_EMPTY_INFO_EN);
		errorEnDesc.put(PHONE_EMPTY_CODE,PHONE_EMPTY_CODE_INFO_EN);
		errorEnDesc.put(SUBILL_QTY_EMPTY_CODE,SUBILL_QTY_EMPTY_INFO_EN);
		errorEnDesc.put(PAY_FLG_EMPTY_CODE,PAY_FLG_EMPTY_INFO_EN);
		errorEnDesc.put(WEIGHT_QTY_EMPTY_CODE,WEIGHT_QTY_EMPTY_INFO_EN);
		errorEnDesc.put(PHONE_ZONE_EMPTY_CODE,PHONE_ZONE_EMPTY_INFO_EN);
		errorEnDesc.put(CONT_CODE_ERROR_CODE,CONT_CODE_ERROR_INFO_EN);
		errorEnDesc.put(REASONCODE_EMPTY_CODE,REASONCODE_EMPTY_INFO_EN);
		errorEnDesc.put(NOT_TRANSFER_ROUT_CODE,NOT_TRANSFER_ROUT_INFO_EN);
	}
}
